package heuristicas;

import principal.Vertice;

public class H5 implements Heuristica {

    private final Heuristica h1 = new H1();
    private final Heuristica h2 = new H2();
    private final Heuristica h3 = new H3();

    @Override
    public int calcula(Vertice v) {
        return Math.max(h1.calcula(v),
                Math.max(h2.calcula(v),
                        h3.calcula(v)));
    }
}
